/*头像*/
let headerPictureContainer=document.getElementsByClassName("headerPictureContainer")[0];
let headerPicture=document.getElementsByClassName("headerPicture")[0];
let message=document.getElementsByClassName("message")[0];
headerPicture.onmouseover=function(){
    headerPicture.style.top="30px";
    headerPicture.style.width="48px";
    headerPicture.style.height="48px";
    message.style.display="block";
}
headerPicture.onmouseout=function(){
    headerPicture.style.top="0";
    headerPicture.style.width="30px";
    headerPicture.style.height="30px";
    message.style.display="none";
}
headerPictureContainer.onmouseover=function(){
    headerPicture.style.top="30px";
    headerPicture.style.width="48px";
    headerPicture.style.height="48px";
    message.style.display="block";
}
headerPictureContainer.onmouseout=function(){
    headerPicture.style.top="12px";
    headerPicture.style.width="25px";
    headerPicture.style.height="25px";
    message.style.display="none";
}
/*二维码*/
let logo=document.getElementsByClassName("logo")[0];
let KeLeWorld=document.getElementsByClassName("KeLeWorld")[0];
logo.onmouseover=function(){
    KeLeWorld.style.display="block";
}
logo.onmouseout=function(){
    KeLeWorld.style.display="none";
}
KeLeWorld.onmouseover=function(){
    KeLeWorld.style.display="block";
}
KeLeWorld.onmouseout=function(){
    KeLeWorld.style.display="none";
}
let searchContainer=document.getElementsByClassName("searchContainer")[1];
let searchInput=document.getElementsByClassName("searchInput")[1];
searchContainer.onmouseover=function(){
    searchInput.style.color="#ffffff";
}
searchContainer.onmouseout=function(){
    searchInput.style.color="black";
}
/*导航条固定到顶部*/
let navHeader=document.getElementsByClassName("navHeader")[0];
document.addEventListener('scroll',function(){
    let topJuLi = document.documentElement.scrollTop||document.body.scrollTop;
        navHeader.style.top = topJuLi+"px";
},true);
/*全屏*/

//定义一个变量进行判断，默认false 非全屏状态
let exitFullscreen = false;
let navF11=document.getElementsByClassName("navF11")[0];
navF11.style.display="none";

let navLi=document.getElementsByClassName("navLi");
if(sessionStorage.getItem("vip")!=2){
    navLi[2].style.display="none";
}

// let vipTF=document.getElementsByClassName("vipTF")[0];
if(sessionStorage.getItem("vip")==1){
    vipTF[0].style.backgroundColor="#42bbfd";
}

